package calendar;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @author LiuYan
 * @date 2021/11/23 13:29
 *
 * LocalDate  LocalTime LocalDateTime
 */
public class Part16 {
    public static void main(String[] args) {
        // ISO-8601时间标准  2021-11-23T13:42:16.087
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
        LocalDateTime ldt = LocalDateTime.of(2021, 11, 23, 22, 22, 22);
        System.out.println(ldt);
        // 2021-11-23
        System.out.println(LocalDate.now());
        // 13:42:16.088
        System.out.println(LocalTime.now());

    }
}
